package javase.implements_abstract_extend_clone;

class CompanyOrder extends Order{
    public CompanyOrder(Integer orderNo, String orderName, Double orderPrice, Integer orderNumber) {
        super(orderNo, orderName, orderPrice, orderNumber);
    }

    public CompanyOrder() {
    }

    @Override
    public Order cloneOrder() {
        CompanyOrder companyOrder = new CompanyOrder();
        companyOrder.setOrderNo(this.getOrderNo());
        companyOrder.setOrderName(this.getOrderName());
        companyOrder.setOrderPrice(this.getOrderPrice());
        companyOrder.setOrderNumber(this.getOrderNumber());
        return companyOrder;
    }
}
